<?php

namespace app\user\model;

use think\Model;

class UserModel extends Model
{
    protected $connection = "mysql_app";

    protected $table = "t_user";

    public function getUserHouse(): \think\model\relation\HasOne
    {
        return $this->hasOne(UserHouseModel::class, 'uid');
    }

    public function getUserPark(): \think\model\relation\HasOne
    {
        return $this->hasOne(UserParkModel::class, 'uid');
    }

    public function getUserCar(): \think\model\relation\HasOne
    {
        return $this->hasOne(UserCarModel::class, 'uid');
    }

    public function getUserFamily(): \think\model\relation\HasOne
    {
        return $this->hasOne(UserFamilyModel::class, 'uid');
    }
}